<ui:composition xmlns="http://www.w3.org/1999/xhtml" 
xmlns:h="http://java.sun.com/jsf/html" 
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets" 
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
    <h:commandButton value="Wywolaj Madal panel">
        <rich:componentControl target="popup" operation="show" />
    </h:commandButton>
    
    <rich:popupPanel show="#{popuppanel.widocznosc}" id="popup" modal="true" autosized="false" resizeable="false">
        <f:facet name="header">
            <h:outputText value="ssssssssssssssssssssssss" />
        </f:facet>
        <f:facet name="controls">
            <h:outputLink value="#" onclick="#{rich:component('popup')}.hide(); return false;">
                X
            </h:outputLink>
        </f:facet>
        <p>aaaaaaaaaaaaaaaaaaaaaaaaaarrrrrrrrrrrrrrrrrrrrrrrrrr</p>
    </rich:popupPanel>
</ui:composition>
